Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: skip commit on failures #99

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

cyberhck
Copy link
Contributor

@cyberhck cyberhck commented Sep 6, 2024

Pull Request Submission Checklist

Please confirm that you have done the following before requesting reviews:

  • I have confirmed that the PR type is appropriate for the change I am making according to
    the Honest Pull Request and Commit Message Naming Conventions.
  • I have typed an adequate description that explains why I am making this change.
  • I have installed and run standard pre-commit hooks that lints and validates my code.

Description

  • see if new pattern is an improvement, to discuss with @tanuj-rohatgi

fixes #94


This change is Reviewable

ctx := context.Background()
err := t.chain.Process(ctx, nil)
if err != nil {
t.onError(err)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

need check if onError is nil, func type in go is nullable

@cyberhck cyberhck force-pushed the idea/no-commit-on-drastic-failure branch from 71786aa to 37f40b8 Compare September 11, 2024 06:20
Copy link

@cyberhck cyberhck marked this pull request as ready for review September 11, 2024 06:29
@cyberhck cyberhck requested review from a team as code owners September 11, 2024 06:29
@taras-zak
Copy link

taras-zak commented Sep 11, 2024

Should you mark PR as contain breaking changes since it changes signature for middlewares ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

skip committing in case of error while handling a message
2 participants